using System;
using System.Data;

namespace BRozklad.GAs
{
    public class GA
    {
        private DataSet rozkladDataSet;

        Population population;

        public GA(DataSet inrozklad)
        {
            rozkladDataSet = inrozklad;
        }



        public void StartGenerate()
        {
            population = new Population(rozkladDataSet);
            population.StartGenerate();
        }
        public void NextGenerate()
        {
            population.NextGenerate();
        }


        /*dodatkovi*/
        public int First()
        {
            return population.First();
        }
        public int Second()
        {
            return population.Second();
        }

        internal void MoveToRes()
        {
            population.MoveToRes();
        }
    }
}
